// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** addEvaluation POST /api/evaluation/add */
export async function addEvaluationUsingPost(
  body: API.EvaluationAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong_>('/api/evaluation/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** dayNewlyAddedEvaluation POST /api/evaluation/day/newly/added */
export async function dayNewlyAddedEvaluationUsingPost(options?: { [key: string]: any }) {
  return request<API.BaseResponseListDataGroupByDateDTO_>('/api/evaluation/day/newly/added', {
    method: 'POST',
    ...(options || {}),
  });
}

/** deleteEvaluation POST /api/evaluation/delete */
export async function deleteEvaluationUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/evaluation/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** editEvaluation POST /api/evaluation/edit */
export async function editEvaluationUsingPost(
  body: API.EvaluationEditRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/evaluation/edit', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** getEvaluationVOById GET /api/evaluation/get/vo */
export async function getEvaluationVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getEvaluationVOByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseEvaluationVO_>('/api/evaluation/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listEvaluationByPage POST /api/evaluation/list/page */
export async function listEvaluationByPageUsingPost(
  body: API.EvaluationQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageEvaluation_>('/api/evaluation/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listEvaluationVOByPage POST /api/evaluation/list/page/vo */
export async function listEvaluationVoByPageUsingPost(
  body: API.EvaluationQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageEvaluationVO_>('/api/evaluation/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listMyEvaluationVOByPage POST /api/evaluation/my/list/page/vo */
export async function listMyEvaluationVoByPageUsingPost(
  body: API.EvaluationQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageEvaluationVO_>('/api/evaluation/my/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** updateEvaluation POST /api/evaluation/update */
export async function updateEvaluationUsingPost(
  body: API.EvaluationUpdateRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/evaluation/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
